class DatabaseType:
    MYSQL = 0
    ORACLE = 1
    REDIS = 2


"""
Configure the database here,
the key represents the database's type
"""
DATABASE = {
    DatabaseType.MYSQL: {
        "host": "localhost",
        "port": 3306,
        "username": "root",
        "password": "5201314",
        "db": "estate"
    },
    DatabaseType.REDIS: {
        "host": "localhost",
        "port": 6379,
        "db": 0
    },

}


PROXIES = {
    "mengdaili": {
        "user": {
            "username": "xxxx",
            "password": "xxxx",
        },
        "urls": {
            "login_url": "https://ip.mengdaili.com/user/login",
            "signin_url": "https://ip.mengdaili.com/user/tag_time",
            "pay_url": "https://ip.mengdaili.com/pay.pack/get_pay_url",
            "order_url": "https://ip.mengdaili.com/?show=getapi",
            "hb_py_url": "https://ip.mengdaili.com/pay.index/hb_pay"
        },
        'pay_types': ["KS1", "KS2", "KS1+"],
        'pay_dates': ["0.0", "0.1", "1"]
    }
}


USER_AGENTS = [
    "'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
    "Chrome/96.0.4664.45 Safari/537.36'",
]

TIMEOUT = 5

# configure the default request headers here
DEFAULT_HEADERS = {
    "User-Agent": "",
}
